package cn.touna.jss.modules.third.baidu.entity;

import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.Mobile;
import cn.touna.risk.api.contraints.facet.First;
import cn.touna.risk.api.contraints.facet.Second;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by Steve.Tao on 2017/8/1.
 */
public class BaiduRequestEntity extends BaseDomain {
    @NotBlank
    private String requestId;

    @NotNull(message = "名字不能为空", groups = {First.class})
    private String name;

    @IdCard(message = "身份证校验失败", groups = {First.class})
    private String idCard;

    @Mobile(message = "手机校验失败", groups = {First.class})
    private String mobile;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
